package com.fengke.cn.yejian11.impls;

import com.fengke.cn.yejian11.javabean.AskList;
import com.fengke.cn.yejian11.javabean.TeaInfo;
import com.fengke.cn.yejian11.javabean.VideoList;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/30 0030.
 */

public interface TeaImpls {
    /**
     * http://172.24.10.175/workout/api.php/create/mod/
     * masterfaq/user_id/3/question/jfhjshfhf/master_id/1
     */
    @POST("create/mod/masterfaq/")
    Call<Integer> ask(@Query("user_id")String user_id,
                      @Query("question") String question,
                      @Query("master_id")String master_id
                      );
    /**
     * 添加关注
     * http://172.24.10.175/workout/api.php/focus
     * /SessionID/060pn7sjorpnq5fp53kid5st54/userid/19/fan_id/1/fans_type/1
     */
    @POST("focus/")
    Call<Integer> coll(
            @Query("SessionID") String SessionID,
            @Query("userid") String userid,
            @Query("fan_id") String fan_id,
            @Query("fans_type") String fans_type
    );
    /**
     * 判断大师对否被收藏
     * http://172.24.10.175/workout/api.php/isExits/mod/fans/fan_id/7
     * /userid/19/fans_type/1/SessionID/pf2cmg5jk9p24f2mv1kjf55bo3
     */
    @POST("isExits/mod/fans/")
    Call<Integer> is_t_coll(@Query("fan_id") String fan_id,
                            @Query("userid") String userid,
                            @Query("fans_type")String fans_type,
                            @Query("SessionID") String SessionID);
    /**
     * 问大师列表
     * http://172.24.10.175/workout/api.php/lists/mod/masterfaq/master_id/2
     * */
    @POST("lists/mod/masterfaq/")
    Call<List<AskList>> getAskList(@Query("master_id") String master_id);
    /**
     * 大师详情列表
     * */
    @POST("get/mod/master/")
    Call<TeaInfo> getTeaInfo(@Query("id") String id);
    /**
     * 大师视频列表
     * http://172.24.10.175/workout/api.php/get/mod/master/related/1/id/1/map/mvideo
     * */
    @POST("get/mod/master/related/1/")
    Call<VideoList> getVideoList(@Query("id" )String id,@Query("map") String mvideo);

}
